#include <QApplication>
#include "qmlapplicationviewer.h"
#include <QDeclarativeContext>
#include <QCamera>
#include <QCameraImageCapture>
#include "camfeatures.h"


// Uses
// http://www.developer.nokia.com/Community/Wiki/CamFeatures:_QML_component_to_get_camera_capabilities

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));

    qmlRegisterType<cameraFeatures>("CameraFeatures", 1, 0, "CameraFeatures");

    QmlApplicationViewer viewer;
    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
    viewer.setMainQmlFile(QLatin1String("qml/SensorCamera/main.qml"));
    viewer.showExpanded();

    return app->exec();
}
